package ui.robots_wicket;

import org.apache.wicket.markup.html.form.Button;
import org.uqbar.commons.model.UserException;

public abstract class BotonCopado extends Button {

	private static final long serialVersionUID = 1L;

	public BotonCopado(String id) {
		super(id);
	}
	
	public void onSubmit() {

		try {
			this.execute();
		} catch (UserException e) {
			this.error(e.getMessage());
		}
	}
	

	public abstract void execute();

}
